@layout("/common/_container.html",{js:["/assets/manager/archiveBorrow/archiveBorrow.js"]}){

<div class="layui-body-header">
  <span class="layui-body-header-title">档案借阅信息表管理</span>
</div>

<div class="layui-fluid">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 layui-col-lg6">
      <div class="layui-card">
        <h2 class="layui-card-header">借阅记录</h2>
        <div class="layui-card-body">
          <form lay-filter="searchForm" id="archiveBorrowSearchForm" class="layui-form toolbar">
            <div class="layui-row layui-col-space10">
              <div class="layui-inline layui-col-md4 layui-col-lg4">
                <input name="jyrmc" class="layui-input" type="text" placeholder="借阅人"/>
              </div>
              <div class="layui-inline layui-col-md4 layui-col-lg4">
                <#date id="startDate" name="startDate" placeholder="起始时间" format="yyyy-MM-dd"/>
              </div>
              <div class="layui-inline layui-col-md4 layui-col-lg4">
                <#date id="endDate" name="endDate" placeholder="结束时间" format="yyyy-MM-dd"/>
              </div>
            </div>

            <div class="layui-row layui-col-space10">
              <div class="layui-inline layui-col-md4 layui-col-lg4">
                <input name="mc" class="layui-input" type="text" placeholder="档案名称"/>
              </div>
              <div class="layui-inline layui-col-md4 layui-col-lg4">
                <input name="wjid" class="layui-input" type="text" placeholder="卷宗号"/>
              </div>
              <div class="layui-inline layui-col-md4 layui-col-lg4">
                <#dic name="sfgh" dic="YESNO" tips="是否归还"/>
              </div>

              <div class="layui-form-item">
                <#reset id="archiveBorrowSearchForm"/>

                <button lay-filter="btnSearch" lay-submit class="layui-btn icon-btn"><i
                  class="layui-icon">&#xe615;</i>搜索
                </button>
                </button>
                @if(shiro.hasPermission("/archiveBorrow/add")){
                <button id="btnAdd" type="button" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加
                </button>
                @}
                <button id="btnExp" type="button" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出
                </button>
              </div>
            </div>
          </form>
          <table class="layui-table" id="archiveBorrowTable" lay-filter="archiveBorrowTable"></table>
        </div>
      </div>
    </div>


    <div class="layui-col-md6 layui-col-lg6">
      <div class="layui-card">
        <h2 class="layui-card-header">借阅档案列表</h2>
        <div class="layui-card-body">

          <div class="layui-form toolbar">
            <div class="layui-form-item">
              <div class="layui-inline">
                @if(shiro.hasPermission("/archiveBorrowDetail/batUpdate")){
                <button id="batReturn" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>归还档案
                </button>
                @}
              </div>
            </div>
            <div class="layui-form-item">
            </div>
            <div class="layui-form-item">
            </div>
          </div>

          <table class="layui-table" id="archiveBorrowArchiveTable"
                 lay-filter="archiveBorrowArchiveTable"></table>
        </div>
      </div>
    </div>
  </div>
</div>

<script type="text/html" id="tableBar">
  @if(shiro.hasPermission("/archiveBorrow/delete")){
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
  @}
</script>


<#dic_templet id="sfgh" dic="YESNO" value="d.sfgh"/>
@}